package com.ruoyi.pcwl.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;


/**
 * 轮播图信息对象 app_carousel
 *
 * @author ruoyi
 * @date 2024-01-19
 */
public class AppCarousel extends WLBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 轮播图id */
    @TableId(value="id", type= IdType.ASSIGN_ID)
    private Long id;

    /** 文件ID */
    @Excel(name = "文件ID")
    private Long mediaFileId;

    /** 媒资文件访问地址 */
    @Excel(name = "媒资文件访问地址")
    private String url;

    /** 上传人 */
    @Excel(name = "上传人")
    private String username;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeDate;

    /** 状态,1:正常，0:不展示 */
    @Excel(name = "状态,1:正常，0:不展示")
    private String status;

    /** 媒资文件访问地址 */
    @Excel(name = "图片访问地址")
    private String pic;

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMediaFileId(Long mediaFileId)
    {
        this.mediaFileId = mediaFileId;
    }

    public Long getMediaFileId()
    {
        return mediaFileId;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setChangeDate(Date changeDate)
    {
        this.changeDate = changeDate;
    }

    public Date getChangeDate()
    {
        return changeDate;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mediaFileId", getMediaFileId())
            .append("url", getUrl())
            .append("username", getUsername())
            .append("createDate", getCreateDate())
            .append("changeDate", getChangeDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("pic", getPic())
            .toString();
    }
}
